 
#include "timer.h"

#if defined (tmr_v1_1) || defined (tmr_v1_2) || defined (LIB_BUILD)
/************************************************************************
Function Prototype : void WriteTimer2(unsigned int timer)
 
Include            : timer.h
 
Description        : This function writes the 16-bit value into the 
                     Timer register.
 
Arguments          : timer - This is the 16-bit value to be stored into 
                     TMRx register.
 
Return Value       : None
 
Remarks            : None
*************************************************************************/
void WriteTimer2(unsigned int timer)
{
    TMR2 = timer;     /* assign timer value to Timer2 Register */
}

#else
#warning "Selected device not supports this function"
#endif
